Return

Edit Task: Assignments

Description

The Assignments attribute under EditTask defines the assignments for the given task. Sending this command will delete all previous assignments

Parameters

ParameterDescription
ShrinkToTimeslotAn optional boolean, set to TRUE to automatically increase the assignment start times and decrease the assignment stop times so that they do not overrun timeslot boundaries.
AssignmentListAn array of objects each containing the following Start, Stop, AssignmentName, and Locked objects.
StartThe format is YYYY/MM/DD_HH:MM:SS or YYYY/MM/DD_HH:MM:SS.fff.
StopThe format is YYYY/MM/DD_HH:MM:SS or YYYY/MM/DD_HH:MM:SS.fff.
AssignmentNameA string of text in single quotes of a comma delimited list of the resource names in the possibility. Order is not required and resource names should be in single quotes.
LockedA boolean that, when true, overrides the algorithm and prevents the particular assignment from being modified automatically.

Examples

Make TaskA use the possibility with ResA and ResB from 12:15:00 to 12:30:00 on 2017/07/31

PATCH api/task/TaskA

Body:

{

"Assignments" : {

"ShrinkToTimeslot" : "TRUE",

"AssignmentList" : [

{

"AssignmentName" : "ResA,ResB",

"Start" : "2017/07/31_12:15:00",

"Stop" : "2017/07/31_12:30:00"

"Locked" : FALSE,

}

]

}

}